<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
   <head>
    	<title>项目上传</title>   
		<s:include value="../common/source.jsp"></s:include>
		<script src="js/Limit.js"></script>		
  </head>
  <body>
  <script>
/* document.write(extArray.join("  ")); */
</script>
  <!-- 项目上传开始 -->
  <div class="body">
	<form class="sui-form form-horizontal sui-validate" action="teacher/upProject.action" method="post"  onsubmit="return LimitAttach(form, file) "enctype="multipart/form-data">
	  <table class="sui-table table-vzebra table0" >
                    <tbody>
                    <tr>
                        <td>项目类别</td>
                        <td> <div class="controls ">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value=1 class="input-large" name="project.kind" type="hidden"><i class="caret"></i><span>横向科研项目</span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="templates/teacher/project.jsp" value=0>纵向科研项目</a></li>
				  <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>横向科研项目</a></li>
                </ul>
              </span>
            </span>
          </div> </td>
                      </tr>
                      <tr>
                        <td>项目名称</td>
                        <td>  <input type="text" class="input-large"  data-rules="required" name="project.name"> </td>
                      </tr>
                       <tr>
                        <td>委托单位</td>
                        <td> <input type="text" class="input-large" data-rules="required" name="project.source"></td>
                      </tr>
                       <tr>
                        <td>项目编号</td>
                        <td> <input type="text" class="input-large" data-rules="required" name="project.number"></td>
                      </tr>
                       <tr>
                        <td>合同总金额（万）</td>
                        <td> <input type="text" class="input-large" data-rules="required" name="project.funds"></td>
                      </tr>
                       <tr>
                        <td>到款总金额（万）</td>
                        <td> <input type="text" class="input-large" data-rules="required" name="project.arriveFunds"></td>
                      </tr>
                       <tr>
                        <td>项目类别</td>
                        <td> <div class="controls ">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="hz" class="input-large" name="project.class_" type="hidden"><i class="caret"></i><span>选择类别</span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>100万以上</a></li>
				  <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>50万以上</a></li>
                  <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=2>50万以下</a></li>
                </ul>
              </span>
            </span>
          </div> </td>
                      </tr>
                       
                        <tr>
                        <td>负责人姓名</td>
                        <td><input type="text" class="input-large" data-rules="required" name="project.leader"></td>
                      </tr>              
                   <tr>
                      <td>其他人员</td>
                        <td>  <input type="text" class="input-large" data-rules="required" name="project.others"></td>
                      </tr>
                      <tr>
                      <td>项目开始时间</td>
                        <td> <input type="text" class="input-large" data-toggle="datepicker" value="2015-01-01" name="dates1"></td>
                      </tr>
                   
                      <tr>
                      <td>项目结束时间</td>
                        <td>  <input type="text" class="input-large" data-toggle="datepicker" value="2015-01-01" name="dates2"></td>
                      </tr>
                      <tr>
                      <td>项目进展情况</td>
                        <td> <div class="controls">
		  <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input  class="input-large" name="project.progress" type="hidden"><i class="caret"></i><span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>进行中</a></li>
				  <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>已验收</a></li>
                   <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=2>已鉴定</a></li>
                   <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=3>已结题</a></li>
                </ul>
              </span>
            </span>
		  
		</div></td>
                      </tr>
                    
                      <tr>
                      <td>上传文件</td>
                        <td>  <input type="file" name="fileCom">  </td>
                      </tr>
                    </tbody>
                  </table>
	  <div class="control-group button3">
          <label class="control-label v-top"></label>
          <div class="controls">
            <button type="submit" class="sui-btn btn-primary"  onclick="return LimitAttach(this.form, this.form.fileCom.value)">提交</button>            
            <button type="reset" class="sui-btn">重置</button>
          </div>
        </div>
	</form>
	</div>
	<!--项目上传结束 -->
         <script>
         if("<s:property value="suc"/>"=="success"){
         alert("上传项目成功！！！");
         }
         </script>
  </body>
</html>
